package com.xjoyt.pay.merchant.register.repository;

import java.util.List;

import org.springframework.data.jpa.repository.Query;

import com.xjoyt.pay.merchant.register.po.MerchantRate;
import com.xjoyt.pay.repository.Repository;

public interface MerchantRateRepository extends Repository<MerchantRate> {
	
	@Query(" select a from MerchantRate a where a.merchant.id = ?1 ")
	List<MerchantRate> findAllByMerchantId(String id);
	
	@Query(" select a from MerchantRate a where a.merchant.id in ?1 ")
	List<MerchantRate> findAllByMerchantIdIn(List<String> ids);
	
	MerchantRate findOneByMerchantId(String merchantId);

}
